<div class="body_content">
   <div class="top_content">
      <div class="left">
	 <div style="margin-right: 20px; margin-top: 8px;margin-bottom: 10px;">
	    <h1>Search</h1>
	 </div>
      </div>
      <div class="right align_right">
	 <div style="margin-right: 20px; margin-top: 5px;margin-bottom: 10px;">
	    <input type="text" name="search" id="searchRecord" class="search" placeholder="Search" />
	 </div>
      </div>
   </div>
   <div class="hr"></div>
   <div class="bottom_content">
      <div class="fields" style="width: 96%;">
	 <?php
	 $db = new Database();
	 $count = $db->query("SELECT * FROM cabinet WHERE is_active='1'","numrows");
	 if($count!=0){
	 ?>
	 <div class="label" style="width:50px;">View By:</div>
	 <?php } ?>
	 <div class="input" style="margin-left: 1px;">
	    <?php
	       
	       $cabinetList = $db->query("SELECT * FROM cabinet WHERE is_active='1'","array");
	       if($count==0){
		  //echo "No Cabinet.";
	       }else{
		   echo "<select class='selection viewCabinetBy' name='viewCabinetBy'>";
		   echo "<option value=''>All Records</option>";
		   foreach($cabinetList as $cabinet){
		       echo "<option value='".$cabinet['cabinetName']."'>".$cabinet['cabinetName']."</option>";
		   }
		   echo "</select>";
	       }
	    ?>
	 </div>
      </div>
      <div style="float: left; margin-top: 10px; width: 100%;">
         <div class="titleBar">
            <div class="holderLeft">
               <div class="titlePosition">
               List tagged information per images.
               </div>
            </div>
            <div class="holderRight">
               <img src="/images/loader/zoomloader.gif" style="float: right;margin-right: 20px;margin-top: 2px;" class="display imageloader"/>
            </div>
         </div>
         <div class="Holdercontent" style="min-height: 230px;">
            <div class="top">
	       <div style="min-height: 30px;">
		  <input type="button" class="btn gen_rep printAll" data-tag-action="printAll" value="Print Selected"/>
	       </div>
	       <div class="Showsearch" style="padding: 5px;">
		  
	       </div>
            </div>
         </div>
      </div>
      <div style="float: left; margin-top: 10px; width: 100%;">
	 <div id="imageInformation"></div>
      </div>
      
   </div>
</div>
<script>
     setActivNav('search');
</script>